import store from '@/store'

export default {
    inserted(el, binding, vnode) {
        const { value } = binding
        let userLevel = store.state.user.userLevel
        if (!value.includes(userLevel)) {
            el.style.display = 'none' 
        }
    }
}